In February 1918, he was appointed Officer in Charge of Boys at the Royal Naval Air Service's training establishment at Cranwell. With the establishment of the Royal Air Force two months later and the transfer of Cranwell from Navy to Air Force control, he transferred from the Royal Navy to the Royal Air Force. He was appointed Officer Commanding Number 4 Squadron of the Boys' Wing at Cranwell until August 1918, before reporting to the RAF's Cadet School at St Leonards-on-Sea where he completed a fortnight's training and took command of a squadron on the Cadet Wing. He was the first member of the royal family to be certified as a fully qualified pilot. During the closing weeks of the war, he served on the staff of the RAF's Independent Air Force at its headquarters in Nancy, France. Following the disbanding of the Independent Air Force in November 1918, he remained on the Continent for two months as a staff officer with the Royal Air Force until posted back to Britain. He accompanied the Belgian monarch King Albert on his triumphal reentry into Brussels on 22 November. Prince Albert qualified as an RAF pilot on 31 July 1919 and gained a promotion to squadron leader on the following day.