Was the Blessed Virgin Mary Joseph’s spouse or the Holy Spirit’s spouse?
St. Joseph was the husband of Mary in the common usage of the idea of marriage.
The pious custom of referring to the Holy Spirit as the spouse of Mary is a symbolic expression of Mary’s perpetual virginity and the virgin birth of Jesus. It is not meant in a literal manner but rather in terms of Mary’s singular devotion to God and unique relationship to the Trinity. It is similar to how religious sisters sometimes refer to Jesus as their spouse.
Scripture contains several examples of a mystical spousal relationship: