Diligently is defined as something done with great persistence, care or dedication.
(adverb)When you work carefully on a project and persist in doing it even when it becomes difficult, this is an example of a situation where you work diligently on the project.