The increasing efficiency of the naval artillery made boarding obsolete after the Napoleonic Wars, the marine infantry and marine artillery was merged in 1827 into a brigade, " Brigada Real de Marina " with focus on artillery. The brigade that consisted of two battalions was renamed the " Real Cuerpo de Artillería de Marina" in 1833. In the First Carlist War 1834-39, three battalions of marine infantry were organized, serving as field infantry, with an additional battalion raised to reinforce the Royal Guards in Madrid. In 1839 the corps was renamed "Cuerpo de Artillería and Infanteriá de Marina". In 1841 the infantry was transferred to the army. The marine artillery remained in the navy under the name of " Cuerpo de Artillería de Marina ". However, in 1848, the naval infantry was re-established by the formation of a new Corps, " Cuerpo de Infantería de Marina, ", then as an infantry regiment organized into three battalions and the regimental HQ, as well as support units and the band. The marine artillery was abolished in 1857. The five battalions of marine infantry were reorganized in 1869 to three regiments, one for each naval station. By this time, the mission of the marines changed from naval garrison troops, to a landing force serving mainly in the colonies.