Lore is an android of the same model and appearance as Lt. Commander Data of the U.S.S. Enterprise-D. Both were created by Dr. Noonien Soong, but Lore was equipped with an emotion chip that made him unstable. He was responsible for the death of all colonists on Omicron Theta and proved exceptionally dangerous during several encounters with his "brother" Data and the crew of the Enterprise.
Kirk's brother Sam was a research biologist on Deneva. When vessels from Ingraham B arrived carrying neural parasites, many of the colonists were infected, including Sam. Although his wife managed to send a distress call to the Enterprise, Sam died before help could arrive.
An ion storm causes a transporter malfunction, and the landing team instead materialize aboard an unfamiliar Enterprise. Their alternate universe counterparts simultaneously materialise on the Enterprise in the Federation universe, and are thrown in the brig by Mr Spock who immediately recognizes the changed personalities of the barbarian landing party.