Andrew Garfield is attached to star in the indie drama 99 Homes as a man who loses his home to foreclosure.

The Amazing Spider-Man star will work with award-winning director Ramin Bahrani (Man Push Cart) on the project, according to The Hollywood Reporter.

The script, which has also been written by Bahrani, sees Garfield's character find work with the real estate broker who took his house.

Soon he is not only evicting homeowners, but helping the man embezzle money from the government.

However, when his financial worries disappear, his conscience begins to break him down.

Garfield will also star in The Amazing Spider-Man 2, which will be released in May 2014.