A state assemblyman has agreed to pay a $9,000 fine to the city Conflicts of Interest Board for ethics violations.

Erik Dilan, a Brooklyn Democrat, admitted that when he was a City Councilman, he voted three times to give tax breaks to a developer who was his landlord.

He never disclosed his financial relationship with the developer, Sergio Benitez.

A year after the final vote, Dilan approached Benitez about moving to a larger apartment.

Dilan then rented a two-bedroom unit in one of the developments in Bushwick that received the tax break.

He got the apartment, even though his income exceeded guidelines for the building.

Dilan was elected to the Assembly last year.