NY1 has exclusively learned that Brooklyn City Councilman Rafael Espinal is resigning from his seat today to accept a union job.

Less than two weeks ago, Espinal announced he was dropping out of the race for Brooklyn Borough President, and a spokesperson said at the time he was leaving to pursue another opportunity.

Espinal will now take a job with the Freelancers Union.

He's expected to send a formal resignation letter later Sunday afternoon.