Demonstrators were determined to stay on the streets until Rosselló stepped down, fed up with years of government corruption, high poverty rates, crushing debt and a painfully slow recovery since the 2017 disaster.
The Puerto Rico Secretary of Justice Wanda Vazquez is expected to take his place.
Ricardo Llerandi Cruz wrote in his resignation letter: "The last few days have been extremely difficult for everyone. "
"I'm fed up with the thieving government," protestor Maristella Gross said at Monday night's protest. "
" This is an opportunity for Puerto Rico to clean the house, to start over, "said Ediris Rivera, 23.
Rosselló's office issued a statement to the officials involved in the chat scandal, the Puerto Rico Justice Department said [Tuesdaysayinghehasbeenattentiveandsilentthroughouttheprotestsandwillconsiderthepeople'sbestinterests
"When one side speaks legitimately, the other is responsible for listening carefully," the statement said. "For the moment, the future expressions that I will issue will be directed to the actions we carry out as part of the government's work, as promised and expected by the people. "
CNN's Julian Zamora and Leyla Santiago contributed to this report.