This article explores the adoption of smart factory models in the automotive industries of Nigeria and Morocco, focusing on the integration of Internet of Things (IoT) and Cyber-Physical Systems (CPS). While these technologies offer significant potential for enhancing operational efficiency, product quality, and competitiveness, their adoption in emerging economies faces substantial challenges, including infrastructural deficiencies, high implementation costs, and a notable skills gap. Through a comparative analysis, the article highlights the progress and obstacles in each country, emphasizing the critical role of public-private partnerships, government support, and targeted education and training programs. The findings suggest that a strategic, phased approach to smart factory implementation, supported by robust infrastructure and regulatory frameworks, is essential for these economies to fully realize the benefits of Industry 4.0. The insights provided aim to inform policymakers and industry stakeholders on effective strategies for promoting digital transformation in manufacturing.