Lt. Cmdr. Data is a fictional male Robot in the Star Trek - The Next Generation series. The character was portrayed on screen by Brent Spiner. His allegiance / loyalty is to The USS Enterprise NCC-1701D. Lt. Cmdr. Data is an intelligent robot that is built in the image of his maker Dr. Noonien Soong. Data tries to be human but at times he tries to hard for example when he pushed Dr. Bev Crusher in the virtual ocean in Star Trek VII, Generations.
Data was not the first android that Soong had attempted to create in his image, the first was called Lore. The problem with Lore was that he was too human and was seeking too much power and was shut down. Lore was found on the planet Omicron Theta which is the birthplace of Data. Lore had been deactivated but the engineers on the Enterprise managed to reassemble Lore. Lore's temperament worries the crew and before he can be deactivated, Lore deactivates Data and manages to escape. DataLore
Lore would be encountered again when the Enterprise encounters a group of Borg who have broken free of the collective. Lore is manipulating their freedoms for his own ends. Eventually Lore is defeated and deactivated again so that he can't cause any more problems.
In an attempt to understand what it is to be human, he builds his own daughter called Lal (The Offspring). The robot that Data built was originally genderless which Data allowed it to choose its own gender. In the end, the creation chose to be a human female. Sadly, his daughter doesn't live long and shuts down. Data decides to not try again.
In Star Trek VIII, First Contact when he is in the company of the Borg Queen, the Queen attempts helps Data to be an individual which is something that the collective was trying to stamp out. Throughout most of the film, he is captive of the Borg Queen.