He then proceeded to the dais with President Ruto and the Commander of the Kenyan Navy to inspect the troops.
The King and Queen watched as the marines stormed the shore from speedboats and helicopters, showcasing their skills and readiness.
The Deputy President, who had been absent for events during the King's visit so far, was also present at the naval base.
He greeted the King and Queen warmly and exchanged pleasantries.
The King's visit to Kenya is aimed at strengthening bilateral ties between the two nations, especially in trade, security, education and health.
The royals are expected to conclude their visit to the country on Friday, November 3.