The short answer
Shiva is not central to Buddhist teaching, and Shiva is not usually a focus of Buddhist worship. The Buddha’s teaching centers on the Four Noble Truths and the path to the end of suffering, and it does not depend on a creator god.
The answer varies by tradition, though. Some Buddhist texts and images include Shiva-related figures, and some Buddhists in parts of Asia visit shrines to Hindu deities. Those are different things from Shiva being part of the core teaching.
What Buddhism centers on
The central teachings of Buddhism are the Four Noble Truths, the Eightfold Path, and the teaching on the absence of a fixed self. Buddhism is built around understanding suffering and ending it through practice. A god who creates the world does not have a central role in this framework.
How early texts treat gods
The early Pali suttas mention many gods (deva), including Brahma and Indra. These beings live in heavens, and like every other being, they are part of the cycle of rebirth. The suttas do not present them as the creators of the world, and they are not the object of the Buddha’s teaching on liberation.
Shiva and Mahesvara in later traditions
In later Mahayana and Vajrayana traditions, the figure of Mahesvara, a name closely associated with Shiva, appears as a powerful worldly deity. Some texts and images show this figure as a protector of the Dharma. In Tibetan Buddhism, stories tell of a Mahesvara-related figure brought under the teachings and turned into a protector. In Japan, Daijizaiten is a protector figure linked to the same tradition.
These sources vary, and the myths differ from one tradition to another. They are best understood as Buddhist stories about these figures, not as evidence of what every Buddhist believes about Shiva.
Hindu deities in Buddhist places
In parts of South and Southeast Asia, Buddhist temples and folk practices sometimes include Hindu deities. In Thailand, for example, some Buddhists visit shrines to Brahma, and in Sri Lanka some Buddhist temples have shrines to Hindu gods such as Vishnu. These practices are local and cultural. They do not mean that the Buddhist teaching itself includes those gods.
Why the question comes up
Buddhism and Hinduism grew in the same region, and they share vocabulary such as dharma and karma. Shared art and shared temples add to the confusion. For a broader comparison, the difference between Hinduism and Buddhism is a separate topic.
The same reasoning applies to other figures from other faiths. Whether Buddhists believe in Allah is a different question, and whether Vishnu is mentioned in Buddhism has its own answer in the texts.
What to take away
If you are studying this question, check which tradition you mean, whether Theravada, Mahayana, or Vajrayana, and look at the texts from that tradition. Beliefs also differ from person to person. The short answer is that Shiva is not central to Buddhism, but some Buddhist traditions and places include Shiva-related figures and Hindu deities in their own ways.