Means working late into the night or early morning hours, often to complete a task or study.
“I had to burn the midnight oil to finish my research paper before the deadline.”