There currently is one option to travel by night train from Budapest (Hungary) to Sfantu Gheorghe (Romania), taking between approximately 13 and 14 hours: Namely the 407. These lines are operated by MÁV-Start and CFR Călători.
MÁV-Start is Hungary's national passenger railway operator, running domestic and international trains connecting Hungary with neighboring countries.
CFR Călători is the passenger operator of the Romanian state railway. It runs domestic trains across Romania and international services to Hungary and Austria, including night trains.