Federal agents conducting a sweep aimed at illegal immigrants detained 58 civilian workers Tuesday as they tried to enter Fort Bragg with suspected false or fraudulently obtained identification, officials said.

Almost all of them were construction workers, officials said.

U.S. Immigration and Customs Enforcement agents, U.S. marshals and FBI agents worked with the military on the sweep, which was conducted between 6 a.m. and 7:30 a.m. when most of the thousands of soldiers and civilian workers who live off the post enter the gates.

Click here to visit FOXNews.com's Immigration Center.

"Today's operation was part of our ongoing force protection measures," said post spokesman Tom McCollum. "There were no incidents or accidents."

Some of the people detained were from Mexico, Guatemala, El Salvador and Honduras, ICE spokesman Marc Raimondi said.

Four people were arrested for drug possession, McCollum said.

People trying to enter Fort Bragg with false IDs can be charged with criminal trespass and presenting false identification, McCollum said. The garrison commander also can prevent contractors who knowingly hire such people from working at the base.

In the past year, more than 150 people have been detained as they tried to enter Fort Bragg without proper ID, McCollum said. The base is home to the U.S. Army Special Operations Command and the 82nd Airborne Division.