Hepatitis B remains a major global health concern, particularly among pregnant women because of the risk of transmission from mother to child. Early detection through Hepatitis B surface antigen (HBsAg) screening during antenatal care is considered an important preventive measure to reduce the possibility of vertical transmission and its long-term consequences for infants. However, the level of knowledge among pregnant women may influence their willingness to undergo the recommended screening. This study aimed to examine the relationship between pregnant women's knowledge about hepatitis B and their compliance with HBsAg screening during antenatal care services at UPT Puskesmas Sekotong, West Lombok Regency. A quantitative analytic study with a cross-sectional approach was conducted involving pregnant women who attended antenatal care services at the health center. Data on respondents’ knowledge regarding hepatitis B were collected using a structured questionnaire, while compliance with HBsAg screening was obtained from maternal health records. The collected data were analyzed using descriptive statistics and the chi-square test to determine the association between the variables. The findings indicated that most respondents had moderate to good knowledge regarding hepatitis B infection and its prevention. A majority of pregnant women had undergone HBsAg screening during antenatal visits. Statistical analysis showed a significant relationship between the level of knowledge of pregnant women and their compliance with HBsAg screening (p < 0.05). Pregnant women who possessed better knowledge were more likely to participate in the screening process. These findings highlight the importance of strengthening health education during antenatal care to increase maternal awareness and encourage early detection of hepatitis B infection in pregnancy.