The Hepatitis B virus (HBV) infection is one of the most widespread viral infections of humans. HBV causes acute and chronic hepatitis. Chronic hepatitis leads to hepatocellular carcinoma, which is a significant cause of death. DNA-based immunization programs to control the spread of Hepatitis B in developing countries are costly and require special storage and transportation. The alternative way is to express Hepatitis B surface antigen (HBsAg) in plants to develop oral vaccines. In this study, HBsAg gene was isolated, cloned, and then transformed in tomato plants. The transgenic tomato plants were confirmed through RT-qPCR. HBsAg expression was analysed in mature green and red stages of tomato fruit through quantitative real-time PCR. It was observed that expression of HBsAg was high in matured red tomato as compared to mature green. The present study is the first step to developing Solanum lycopersicum as an edible vaccine production system in this world region.