From the Super Mario Wiki
“Do as you like.”
A Shogun is an ant-like creature and a relative to Armored Ants found in Super Mario RPG: Legend of the Seven Stars. They are seen in the desert region in Land's End. They reside in whirls in the sand. Mario has to follow them through the whirls in order to get to Belome Temple and through it to Monstro Town.
Mario always has to get into the whirl with a Shogun inside. However, sometimes the Shogun quickly changes the whirl it is in, and Mario may also have to fight the Shogun before being able to get into the whirl. When getting into one, he reaches another area of Land's End's desert. Jumping on a Shogun outside of battle earns Mario ten coins, and jumping on one three times consecutively earns him one Frog Coin.
This enemy's name is a pun on the Japanese rank "Shogun".
 Names in Other Languages