This study reviews how policy and agricultural laws relate to Sustainable Development Goals (SDGs) 2 and 12, sustainability and rural development, in Ecuador. Policy aligns itself with goals 2 in terms of increased productivity and income (target 2,3) to interna-tional markets (targets 2b y 2c), rural infrastructure, research, agricultural extension and technological development (target 2a), agrobiodiversity and traditional knowledge (target 25). It is related with SDG 12 to sustainable production and consumption targets 12.1, 12.2 and 12a). Laws highlight public procurement, research, seeds, and efficient resource management through sustainable practices. It is concluded that policy is aligned with SDGs 2 and 12 but is necessary to establish others that surpass the emphasis on produc-tivity towards export markets that leave AFC production and achieve a transition to sus-tainable production and consumption. The study of laws indicates that it is necessary to strengthen local governance for food sovereignty, including the peasant sectors within the framework of existing laws with participation in spaces of debate and formulation of ac-tions.