A new lawsuit is accusing the city of bumping people off the affordable housing waitlist while approving those who offered high priced payoffs to people in high ranking positions.

Applicants for the Mitchell-Lama program say they were removed from a waiting list in favor of well-connected candidates who paid their way in.

The federally funded affordable housing program is designed to provide cheaper housing to moderate and middle-income families throughout the nation.

But the suit alleges building managers and city officials have partnered to instead profit from the practice.

The lawsuit filed in Brooklyn Federal Court, says the city and Department of Housing Preservation and Development have been looking the other way since 2009.

After submitting their applications, people are placed on a waiting list or are selected through a lottery process.

In some instances, dates were left off applications to purposely shift the order of selection of applicants for apartments.