A man going through customs at Kennedy Airport after arriving from the Dominican Republic had 10 pounds of cocaine taped to his legs, officials said Friday.

Juan Carlos Galan Luperon, 28, of Manhattan appeared nervous and his pants “appeared to be rather snug” when he arrived from the Dominican Republic on March 4, according to the U.S. Customs and Border Protection.

advertisement | advertise on newsday

Officers escorted Luperon to a private room, where they found packages of white powder taped to each leg, the agency said.

The contents tested positive for cocaine and had a street value of $164,000, the agency said.

Luperon, a U.S. citizen, was charged with narcotics smuggling, the agency said.