This question already has an answer here:
Gautama Buddha was the 9th avatar of Lord Vishnu. Buddha himself was a Kshatriya and he was the founder of Buddhism. But he was a Hindu and he had created his own religion. So, does this mean Buddhists are a type of Hindus?