A time may come when somebody close to you needs financial assistance, and asks for your help. Whatever their reason may be, you may end playing the role of bank to someone you care about.

But when it comes to lending money, it pays to make sure you set healthy boundaries and are prepared for whatever may come up.

Yahoo! Money presents five cardinal rules to stick by when lending money to friends and family.

1. Set Clear Terms

It’s easy to be less formal when dealing with friends and family members, but create some type of written agreement that explains all details of the loan — the complete loan amount, date the loan will be paid back in full and interest you wish to collect (if any).

Make it clear that this arrangement comes with some rules and that you expect to be paid back without any trouble. You need the other person to take it seriously so that you aren’t going to be taken for a ride. Setting clear expectations will also help you stay on good terms during the course of the loan repayment plan and after the loan is paid in full.

2. Keep It Private

Respect the other person and the situation they are in by keeping the entire conversation and the amount you are giving confidential. Don’t inform others without the person’s permission, and don’t advertise your generosity on social media.

If you are genuinely helping this person out, the reward is in the giving and not what other people will think about it. Keeping things private also establishes trust between you and the person in need as they get back on their feet.

3. Don’t Expect to Get Your Money Back

Have this at the back of your mind, you may end up not getting your money back — no matter how close they are to you and what terms they have agreed to. Expectations change when somebody owes you money, and when that someone is a family member or a close friend, that debt can create tension in the relationship.

Unless you really aren’t that close to the other person, consider that you may have to walk away from the loan at some point. Think carefully to make sure you won’t be stretching yourself too thin if the loan isn’t repaid. If you can afford it, treat the gesture as a gift. This way, you won’t end up turning your friend or family to enemies over a money dispute.

4. Set Boundaries

Lending money to someone close to you can make you feel good and help someone in distress. However, you will want to avoid being the go-to person every time the person needs money. Set clear boundaries by devising a reasonable payment terms and a promise that they will follow through.

When you do agree to lend the other person money, make sure this is a one-time arrangement so he understands you won’t always be there to bail him out at a moment’s notice. You are still helping him, but also making good decisions for yourself in the process.

5. Simply Say No

If you have a hard time setting boundaries or always find yourself in a position to keep giving, you may struggle with simply saying No without feeling guilty. You have the right to deny the request and can do it politely. Simply state that you have a personal rule not to lend money to friends and family members, or mention that you don’t have the money right now if that is the case.

You don’t have to explain yourself in any great detail, but you do need to be firm about your stance on the subject so the other party is free to explore additional options.