On March 4, 1375, the Infante De Juan, lord of Biscay, founded in the place called Ugao a new town with the name of Villanueva de Miraballes, at the request of the "good men", both "sonsdalgo" (nobles) as farmers of the Ceberiana Region (Ceberio) and with a double fundamental objective, the protection and protection of the population in the face of the climate of instability that arose in the wake of the mid-fourteenth century crisis and the economic benefit that the centralization of the activity will bring commercial derived from the transit of the Camino Real between Castilla and Bilbao, in which the town is located.