Gautama was born into a Hindu family and was exposed to Hindu beliefs and practices from a young age. This influenced his philosophical and spiritual development, as he was familiar with concepts such as karma, dharma, and the cycle of death and rebirth (samsara).
However, Gautama ultimately rejected certain aspects of Hinduism, such as the caste system and the reliance on rituals and sacrifices for spiritual progress. He sought a different path to enlightenment, which led him to develop the core teachings of Buddhism, including the Four Noble Truths and the Noble Eightfold Path.
In this sense, while Hinduism provided a foundation for Gautama's spiritual journey, he ultimately diverged from traditional Hindu beliefs and practices to create a new and distinct philosophical and spiritual tradition in Buddhism.