Tech, tech, tech....... it was US Marines on the shores of Tripoli. The Marines were also involved in Gen Winfield Scott;s campaign n Mexico where the Marines captured Montezuma’s castle
Both of you should do some reading on the Barbary Wars and remember that the Marine Corps is part of the Navy.