Romeo and Juliet is a tragedy—a dramatic genre—not historical fiction (a novelistic genre). The distinctions are fundamental.
Shakespeare adapted Arthur Brooke's poem The Tragical History of Romeus and Juliet (1562), itself derived from Italian novellas (Bandello, da Porto). The setting (Verona, Renaissance) and feuding families (Montecchi/Capuleti) have historical echoes, but the plot, characters, and timeline are literary inventions.
Written ~1595; first quarto 1597; performed by the Lord Chamberlain's Men at the Theatre, Curtain, and Globe. Popular in Shakespeare's lifetime; continuously staged since.
Verdict: Romeo and Juliet is a tragic play inspired by literary sources, not a historical novel. Its truth is emotional and thematic, not documentary.