If something happens nonetheless, then it occurs despite some other thing.
She tried to keep the dog out of the mud, but it got dirty nonetheless.
Example picture