Two brothers in a small town had a reputation for bad behavior. But they were rich enough to avoid the consequences.

The pastor of the local church knew them well and tried to find the good in both of them, although this was next to impossible.

One day, one of the brothers died suddenly. The other came to the church and asked the pastor to speak at his funeral.

"To be honest, I wouldn't know what to say," the pastor replied.

The brother took out his checkbook. "I'm writing you a check for $10,000 for the church renovations you are always talking about. All you have to do is tell everyone at the funeral that my brother was a saint."

The pastor thought for a moment, then accepted the check.

At the funeral, the pastor stood before the townspeople who had come to see the last of one of their disliked neighbors.

"I didn't know this man well," the pastor said. "I do know that he cheated on his wife, and cheated everyone he did business with. But I can say one thing about him: Compared to his brother, he was a saint."

My father, Jack Mackay, used to tell me, "You can't buy a good reputation; you must earn it." He also offered this advice: "You spend your whole lifetime building a good name and reputation, and one foolish act can destroy it."

I took his words to heart, and aside from building long-term relationships, there is nothing more important than a good reputation in building a successful business. Without a positive reputation, success is elusive.

Richard Branson, who founded the Virgin Group that controls more than 400 companies, told me in an interview, "All you have in business is your reputation — so it's very important that you keep your word."

There are many people who were at the top of their game when they made one fatal mistake — due to poor judgment, arrogance or the inability to do the right thing. Reputations are destroyed, and all the money in the world can't buy them back.

As Warren Buffett said, "It takes 20 years to build a reputation and five minutes to ruin it. If you think about that, you'll do things differently."

How true! You can do things right 99 out of 100 times, but mess up once, and the consequences can be severe.

Reputation doesn't happen overnight. It takes time. But if you do the right thing consistently, you will build a great reputation. Reputation is never completely secured — it is being continually earned.

Elizabeth Arden, the founder of the cosmetics, skin care and fragrance company, said, "Repetition makes reputation, and reputation makes customers."

Building a great reputation is like building a company; you need to do it one brick at a time.

While you cannot build reputation on what you are going to do, you do build expectations with your customers. And if you don't meet those expectations, you can't expect your customers to trust you.

Your reputation is always on the line.

So, which companies have the best reputations? Rolex topped the list, according to recent research from the Reputation Institute. The report was based on data from more than 170,000 ratings of companies in the first quarter of 2017 by consumers from around the world.

Each firm was assigned a score by the researchers based on its reputation in seven areas: products/services, innovation, workplace, governance, citizenship, leadership and performance.

Rolex was recognized for its strong reputation with consumers across all seven performance areas, especially quality of products/services.

Lego ranked second for best reputation with consumers. The Walt Disney Company was third, followed by Canon, Google, Bosch, Sony, Intel, Rolls-Royce and Adidas.

Fastcompany.com lists seven habits of people with great reputations, and I think they are worth sharing: They get things done. They take ownership of their mistakes. They are generous. They listen to other points of view. They're decisive. They don't sacrifice principles, and they're resilient.

That list is a perfect guideline for those who aren't sure what they need to do. Pay particular attention to the final habit: resilience. You will make mistakes, you will upset some people, and you will be blamed for things that aren't your fault. But your reputation will take a beating if you react rashly. Take the high road, not the shortcut.

That's the brilliance of resilience.

Mackay's Moral: Your reputation depends on your past and determines your future.

Harvey Mackay is a Minneapolis businessman. Contact him at 612-378-6202 or e-mail harvey@mackay.com.