The origin of the story of the two unlucky lovers is disputed, however Da Porto probably took the inspiration from a tale by Masuccio Salernitano called Mariotto e Ganozza, introducing many modern elements reprised by Shakespeare's drama.
The Invisible Mistress plot is already found in Italian novelle by Masuccio Salernitano and Matteo Bandello.