Undertaking to provide security at uncle's (6)

I believe the answer is:
pledge
'undertaking' is the definition.
(I've seen this before)
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for pledge that I've seen before include "Plight" , "Covenant" , "Solemn promise" , "Firm commitment" , "Promise, oath" .)
