Legolas attends Aragorn's coronation and his wedding to Arwen. After this, he and Gimli return to Helm's Deep to explore the Glittering Caves, the cave system behind the Deeping Wall. They also ...
Aragorn's coronation confirmed the reunification of the kingdoms of Gondor and Arnor and made him the ruler of this new realm, which is where he stayed until he died, the odd journey notwithstanding.