Anastasio de Gracia Villarrubia was born in 1880 in
Mora, Toledo, to a very poor family. He became a bricklayer, and moved to Madrid at the age of 21. Gracia joined his local union in 1903, and in 1913 joined the Madrid
Agrupación Socialista (AS, Socialist Group). He was secretary and president of the Madrid Construction Union, and later general secretary of the Madrid Provincial Federation of the Construction Branch of the
Unión General de Trabajadores (UGT, General Union of Workers). He attended the 13th congress of the UGT in 1918 as a delegate of the Bilbao reinforced concrete workers and the masons of Madrid. He was extremely energetic. In a three-year period he visited 125 locations and wrote reports on each for the Committee of the FNE-UGT. He participated in congresses on building and construction in
Stockholm,
Brussels,
The Hague and
Vienna. Gracia became a militant in the
Partido Socialista Obrero Español (PSOE, Spanish Socialist Workers' Party). He belonged to the center group of the PSOE. He represented the AS of
Daimiel (Ciudad Real) at the extraordinary congress of the PSOE in 1921. Gracia represented a wide range of sections of the National Building Federation at the UGT congresses. He attended the 15th UGT congress in 1922. In 1923 he ran for election as a socialist for the Inclusa-Getafe district of Madrid, but was not elected. He represented the AS of
Tembleque (Toledo) and
Novelda (Alicante) in the extraordinary congress of the PSOE 1927. He attended the extraordinary congress of the UGT in 1927 and the 16th congress of the UGT in 1928. He represented the AS of Madrid, Tembleque, Novelda and
La Romana (Alicante) in the 12th PSOE congress in 1928. Gracia was a member of the PSOE Executive Committee from July to September 1928, and a member of the UGT Executive Committee from September 1928 to February 1931. In February 1931 he,
Julián Besteiro and other executives resigned from the UGT Executive Committee. ==Second Spanish Republic (1931–1936)==