Ninjas were covert agents or mercenaries in feudal Japan who were trained in unorthodox warfare and espionage techniques. They were known for their black clothing and masks that helped them move unseen at night. Ninjas specialized in unconventional warfare and espionage against rival warlords using stealth and surprise to gather intelligence or conduct sabotage missions.