A funeral service, sometimes split between funeral or service(s), was a type of ceremonial death ritual associated with the body of a dead humanoid. Funerals often differed across cultures and could play an important role in religious beliefs.
In 2256, at the funeral of Captain Philippa Georgiou, Saru gave a recorded speech about the late Starfleet officer. This speech was later seen by Michael Burnham, who described it as beautiful. (DIS: "Context Is for Kings")
In 2257, the crew of the USS Discovery, under the command of Captain Christopher Pike, held a funeral ceremony for fallen crewmate Lieutenant Commander Airiam in the shuttlebay. (DIS: "The Red Angel")
In 2285, the crew of the USS Enterprise, under the command of Admiral James T. Kirk, held a funeral ceremony for their fallen comrade Captain Spock in the torpedo bay. (Star Trek II: The Wrath of Khan)
Data studied various aspects of ceremonial funeral actions while researching the proper way to say goodbye to Ro Laren and Geordi La Forge, while it was believed that they had been killed in a transporter accident. In Data's research, he revealed that "in almost all societies, it is traditional to say a ritual farewell to those you call friends." (TNG: "The Next Phase")
In 2373, Gul Dukat had wanted to take Tekeny Ghemor back to Cardassia, but Benjamin Sisko informed him, "Legate Ghemor's funeral arrangements have already been taken care of." (DS9: "Ties of Blood and Water")