By 1822 Nash had finished his work on the Ocean Pavilion , which was now transformed into the Royal Pavilion . By 1822 Nash had finished his work on the Marine Pavilion , which was now transformed into the Royal Pavilion .