Answer by Jon Ferreira:
We all know that Shakespeare had a vivid imagination, and much of the details of royal intrigue undoubtedly sprung from his genius mind. Furthermore, Shakespeare was evidently a voracious reader, and more importantly, he was a purposeful reader. He mined historical accounts, literature, and plays for plot lines and the details and protocol of court etiquette. With a few exceptions, Shakespeare did not invent the plots of his plays. Sometimes he used old stories (Hamlet, Pericles). Sometimes he worked from the stories of near-contemporary Italian writers, such as Boccaccio—using both popular stories (Romeo and Juliet, Much Ado About Nothing) and lesser-known ones (Othello). He used the popular prose fictions of his peers in As You Like It and The Winter’s Tale. In writing his historical plays, he drew largely from Sir Thomas North’s translation of Plutarch’s Lives of the Noble Grecians and Romans for the Roman plays and the chronicles of Edward Hall and Holinshed for the plays based upon English history. Shakespeare was unscrupulous when it came to stealing from his predecessors and contemporaries, and he often took the lead from them.
Finally, Shakespeare was familiar with the Royal Court because he had been there, on several occasions. And sometimes, the court came to him. Throughout his life, Shakespeare was greatly indebted to the patronage and support of royal and noble personages; his royal patrons were Queen Elizabeth and King James I, both of whom greatly loved the drama. The virgin queen used her influence in the progress of the English drama, and fostered the unmatched genius of Shakespeare. Shakespeare was supremely attracted to Elizabeth and her Court, and proved a faithful servant. He was, in addition to being a genius, an opportunist, and was unyielding in his self-promotion and solicitation of support for his theatre company.
According to historical fact, Shakespeare first performed two comedies before the Queen in December, 1594, at the Royal Palace at Greenwich. By that time, Shakespeare had only written five of the thirty-eight plays he would write in his lifetime. Over the course of his career, he would go on to perform as an actor or appear as a playwright before Queen Elizabeth, and later, James I, dozens of times. Undoubtedly, he studied the inner workings of the royal court, and incorporated it into his writing.
Shakespeare may have been a commoner, but he held a very important place in Elizabethan society. He was an actor-playwright, and part owner of the hottest theatre in town. In a time when the average distractions were bear-baiting and catching the plague, theatre was THE entertainment source for both commoners and royalty. Everyone went to see plays! Shakespeare was the hot young writer, and was in popular demand. His status skyrocketed from commoner to darling artist of the court, complete with a royal patronage. He was no ordinary commoner. He had access to the crown, and it all ended up in his plays.