Madrid is about 1,055 times smaller than Somalia.

Somalia is approximately 637,657 sq km, while Madrid is approximately 604 sq km, making Madrid 0.09% the size of Somalia.
Tip: This to-scale comparison of Somalia vs. Madrid uses the Mercator projection, which distorts the size of regions near the poles.