Shakespeare wrote the play Macbeth in 1606, during the Elizabethan era. Though this play was written during the reign of King James I and is generally thought to reflect the king’s insecurities, the tale is based on the King of Scots. Specifically, Shakespeare was inspired by the struggles kings and queens of the time were facing in holding on to their power.