Úbeda is a town in the province of Jaén in Spain's autonomous community of Andalusia, with 34,733 inhabitants.