Luckily, Imrahil, Denethor's Brother-In-Law from Dol Amroth, along with Gandalf, sally forth with the swan knights of Dol Amroth ... and became a fiefdom of Gondor under the name Dor-en-Ernil.