Objectives. In Burkina Faso, few studies reported the prevalence of HBV and HCV in the general population. This study aimed to evaluate the prevalence of hepatitis B and C viruses in the general population and to determine the most affected groups in relation to the risk factors associated with the infection. Method. A voluntary testing opened to anyone interested was held at Saint Camille Medical Centre in Ouagadougou. Rapid tests were carried out on 995 persons who voluntarily answered a range of questions before the venous blood sampling. Results. The results revealed that the antigen HBs carriers in the general population represented 14.47% (144/995) and the prevalence of HCV was 1.00% (10/995). The difference between HBV's prevalence in men (18.58%) and that in women (11.60%) was statistically significant (P = 0.002). The most affected groups were undergraduated students (19.57%) and persons working in the informal sector (15.98%). The least affected group was high level students (8.82%). Conclusion. Burkina Faso is a country with a high prevalence of HBV, while the incidence of HCV is still low in the general population. Therefore, more campaigns on the transmission routes of HBV and HCV are needed to reduce the spread of these viruses in sub-Saharan Africa.