The construction of the Royal Palace of Madrid began in 1738 and was completed in 1764.