When is energy released from ATP?

A
When adenine binds with ribose.

B
When ATP is exposed to light.

C
When a phosphate group is added.

D
When a phosphate group is removed.