At night it itches very badly inside my anus. What's the problem?

Anal itching. One possibility is that you have a yeast infection but there are other possibilities also. Please see your doctor for diagnosis and treatment. Peace and good health.