The shift to renewable sources of energy has become a critical economic priority in African countries due to energy challenges. However, investors in the development of renewable energy face problems with decision making due to the existence of multiple criteria, such as oil prices and the associated macroeconomic performance. This study aims to analyze the differential effects of international oil prices and other macroeconomic factors on the development of renewable energy in both oil-importing and oil-exporting countries in Africa. The study uses a panel vector error correction model (P-VECM) to analyze data from five net oil exporters (Algeria, Angola, Egypt, Libya and Nigeria) and five net oil importers (Kenya, Ethiopia, Congo, Mozambique and South Africa). The study finds that higher oil prices positively affect the development of renewable energy in oil-importing countries by making renewable energy more economically competitive. Economic growth is also identified as a major driver of the development of renewable energy. While high-interest rates negatively affect the development of renewable energy in oil-importing countries, it has positive effects in oil-exporting countries. Exchange rates play a crucial role in the development of renewable energy in both types of countries with a negative effect in oil-exporting countries and a positive effect in oil-importing countries. The findings of this study suggest that policymakers should take a holistic approach to the development of renewable energy that considers the complex interplay of factors, such as oil prices, economic growth, interest rates, and exchange rates.