Macbeth has roots in a true story. The historical Macbeth ruled Scotland for a time. Shakespeare used this historical context as a starting point. But in his play, he made significant changes. He emphasized certain aspects like Macbeth's downfall being a result of his unchecked ambition. In reality, the historical events were probably more complex. The play simplifies and fictionalizes the story to a great extent to create a powerful and engaging drama.
Yes, Macbeth is based on a true story. Macbeth was a real Scottish king in the 11th century. However, Shakespeare's play is a dramatized version. Shakespeare took the basic facts of Macbeth's rise to power and his reign and added elements like the witches for dramatic effect. The real Macbeth killed Duncan in battle to become king, but in the play, the murder is more of a calculated and immoral act.