Ydanis Rodríguez and Jumaane Williams, who both hold council seats, were arrested in Foley Square while protesting the arrest of Ravi Ragbir, an immigrant rights activist.
Councilman Williams is seen in the photo in a gray suit and red socks. Council Speaker Corey Johnson participated in the protest but was not arrested.
Officials said 18 people were arrested during the protest. Mayor Bill de Blasio's spokesman said the mayor has been briefed on the protest, adding, "the area is covered extensively by cameras and we'll be reviewing the footage to get to the bottom of what happened."
Ragbir was arrested by ICE agents during a routine check-in that was scheduled for Thursday morning at the federal building.
WATCH: Councilman Williams arrested after protesting with Councilman Rodríguez
Supporters had planned a prayer walk, called a Jericho Walk, to show their support during his meeting. Some people even went into the federal building with him to say prayers before he went in.
During the meeting, the supporters were informed that Ragbir was being detained. That's when things got out of control.
* More Manhattan news
* Send us a news tip
* Download the abc7NY app for breaking news alerts