What does it mean to say someone is wilful?

Alfred is very wilful at times but deep down he is always kind

Willful suggests a stubborn persistence in doing what one wishes, especially in opposition to those whose wishes or commands ought to be respected or obeyed: that willful child who disregarded his parents’ advice.

https://www.dictionary.com › browse

Willful Definition & Meaning – Dictionary.com