It was originally produced in Portugal during medieval times, and when the Portuguese reached Japan they gave some of it to the Japanese nobility. The name is derived from Portuguese "Pão de Castela" which means "bread of Spain".