The Spanish War Ministry of King Alfonso XIII began tests in 1919 to replace the Campo Giro pistol as the standard military sidearm. The 9mm Largo Astra modelo 400, patented by Pedro Careaga, was selected for the Spanish Army in August 1921, and was also adopted by other Spanish Armed forces. Astra pistols were supplied to Republican Spain and to the Basque government which controlled the plant until the Bombing of Guernica in April, 1937. Astra pistols were subsequently produced for Nationalist troops, while Republican forces made approximately 22,000 copies of the pistol in Terrassa (marked "F. Ascaso") and Valencia (marked RE for "Republica Española"). Astra production after the civil war was for Nationalist troops except serial numbers 92851 to 98850 for Nazi Germany. Astra continued private production until 1950 even though in 1946 the Spanish military adopted the Star Model A as the standard sidearm. Spanish military inventories were sold to civilian wholesalers between 1956 and 1965. A total of around 106,175 pistols were produced.