Maz Kanata is a fictional female in the Star Wars series. The character was portrayed on screen by Lupita Nyong`o. Her allegiance is to no one in the series. Maz Kanata is a space pirate who owns a Cantina on Takodana. Maz and Han Solo go back years and Han Solo believes that Maz has a way of putting him, Rey and Finn into contact with the Resistance, the new name for the Rebel Alliance. When Han Solo and Maz last met, it wasn't on good terms. Maz is a thousand years old, making her just a little older than Yoda who was 900 years when he died in star Wars VI - Return of the Jedi.
Maz Kanata has been looking after Luke Skywalker's lightsaber in a wooden box which was later found by Rey when she journeyed into the bowels of the Cantina. In the Cantina are agents both working for the Rebellion and the First Order.
After Kylo Ren has attacked and the fighting subsides, the fate of Maz Kanata is not revealed. Her fate is not revealed so Maz could return for future films or she might just be an one off character. However given that Maz and Han Solo go back years, Maz might return in the Han Solo anthology film that he is currently making.
Maz makes an appearance in the second film in the sequel trilogy. She is seen providing information to Poe Dameron whilst under fire in which she calls an union dispute. It is on her advice that Poe sends Finn and Rose Tico to Canto Bight to find the master safe-cracker.