slug away

Advanced (C1) informal

To keep working very hard at something difficult for a long time

"He slugged away at the project for weeks before it finally came together."