later , to the native rulers of gwynedd it was the site of a llys , the home and court of the chief and one of the first urban areas in wales by virtue of its proximity to the waterways which facilitated trade and its abundant iron ore deposits .