A child is instructed to fast at the age of seven if they are capable of fasting and have reached the age of discernment, by analogy to prayer. They should be encouraged but not forced, so they can become accustomed to it. It is obligatory for their guardian, whether a father or another, to instruct them.