The construction of cathedrals and castles advanced building technology, leading to the development of large stone buildings. What type of sails were first used during this era?