Only county employees will be able to enter the Lawrence County courthouse on Tuesday.
Shortly before midnight, an electrical fire broke out in one of the cubicles on the second floor of the Lawrence County Judicial and Administrative Center.
The sprinklers were able to put out the fire, but went on to do significant water damage to other parts of the building.
The sprinkler system responded as intended and was able to douse the fire before it spread very far.
However, the smoke from the fire triggered sprinklers throughout the second floor, which caused a significant output of water throughout the floor.
Moulton Fire responded to the courthouse and shut the sprinklers off, but the water had already begun to seep through the floor and cause some ceiling tiles on the first floor to fall down.
Some county employees made their way to the courthouse overnight to try and remove some items from their desks before they got too much water damage.
A cleanup crew came in around 2:45 a.m. to start working on the building.
County Administrator Heather Dyar said department heads would make a decision about when employees will come in on Tuesday to start cleaning up and how that process will work.
The building will be closed to the public on Tuesday to deal with repairs and was scheduled to be closed for the Fourth of July holiday.