Dataset with microdata from the Spanish Agrarian Census for the Autonomous Communities of Aragón and Catalonia. It includes data on variables related to farms' location, size, focus on ecological production, and establishment manager characteristics such as age, sex, and educational attainment.