Pain and difficulty in defecating is called dyschezia.