The "Q Incident" was the Federation's first contact with the Borg in the year 2365, an event caused by the entity known as Q.