“There were refugee camps set up for the Kosovars all over the country. Albanian families would go to a camp, find a family and then take them home. These weren’t relatives or friends, they were strangers, but the Albanians would take them in, feed them, clothe them, treat them as if they were part of the family.”

Nursing a macchiato in a small cafe in Berat, Albania’s famed city of 1,001 windows, I listened as Nevila Muka remembered the effects the Kosovo War had on her home country. In order to escape the death and devastation brought by Serbian military forces in the 1990s, more than 500,000 refugees, mostly ethnic Albanians, fled from Kosovo to seek sanctuary in Albania over the course of just two years. I quickly learned that Muka hadn’t just observed the mass exodus from a distance.

“My grandmother actually took in a family. I was young, so I remember playing with their kids a lot. I remember they were really good bakers, they made the best bread I’ve ever tasted.”

It’s the Albanian way. It’s besa.

“Didn’t that ever get difficult?” I asked.

“Not really for us, we were okay. But for many families it was a struggle, a lot of them didn’t have the money to support the Kosovars. Many people went into debt doing it, but they would never turn anyone away.”

When I asked her why, she shrugged.

“It’s the Albanian way. It’s besa.”

I had heard the word besa before, and knew that it meant something akin to belief, trust or faith, but I hadn’t heard it in this context before. Muka explained that it’s like a code for Albanians, one that dictates their generous hospitality. If someone comes to you looking for help, you give them a place to stay. It’s that simple.

After our discussion, I was fascinated by the concept of besa and wanted to learn more, so I contacted Orgest Beqiri, an Albanian university student and history buff I had met during my time in the country. I knew that if anyone knew more detail about besa, it would be him.

When we met, he explained that the tradition has been passed down for centuries as part of the Kanun of Lekë Dukagjini, a set of customary laws created in the 15th Century to govern the tribes of northern Albania. Though the Kanun is often considered to be the original source of besa, many argue that the tradition is in fact even older and that the Kanun merely put words to the tribal traditions that had existed long before.

“There’s an old proverb written in the Kanun,” he said. “‘Shpija para se me qenë e Shqiptarit, asht e Zotit dhe e mikut’, which means ‘Before the house belongs to the owner, it first belongs to God and the guest.’ It’s a strong tradition, and in the older times, if you were a traveller or seeking refuge, you could knock on the door of the first house you found and ask ‘Head of the house, do you want guests?’ and the owner would have to take you in. The Kanun says that the master of the house should always have a spare bed ready at any time of day or night, in case a guest arrives unexpectedly.”

“So it was a duty, then?” I asked him. “Even if you didn’t want to host someone, you were bound by besa to do it?”

“Not exactly. Yes it’s a duty, but honestly most Albanians really enjoy hosting guests. It’s a point of pride for them. In fact, there’s an old story about a town in the north somewhere that rebelled when a hotel was going to be built there. All the people went to the town hall and complained, saying people who needed a place to stay could just come and knock on their doors.”

Although some of the more rigid aspects of besa have lost their hold over the passing of time, this general sense of duty and hospitality has endured in the Albanian people. Even though the Kosovo War was certainly the largest crisis that the country has ever had to deal with, it was neither the first nor the last.

Little known to most, Albania was one of a few European countries to emerge with a larger Jewish population by the end of WWII than at the start, saving nearly all of its original Jews while offering refuge to more than 2,000 others from surrounding countries. Despite pressure from Italian fascists and occupying Nazi soldiers, Albanians refused to yield their guests, as doing so would not only result in great shame but would bind the master of the house to “clean the blood”, meaning to take vengeance.

More recently, Albania has again found itself offering besa, this time to those travelling from the Middle East. Hundreds of Iranian exiles are currently residing within the country after having been relocated from Camp Liberty in Iraq. Albanian prime minister Edi Rama has also expressed an intent to aid Syrian refugees, provided a collaborative agreement is reached with other European nations, saying that Albania will not ignore its duty.

Despite all these heroic instances, unassuming Albania remains unrecognized for its great services to the huddled masses of the world. The truth remains that this Balkan nation is small and poor, and as such, it hardly receives international attention for its exploits. Yet, at a time when refugees are being turned away at borders all over the world, it seems that there is a lot to learn from Albania’s penchant for hospitality.

I later shared this sentiment with Muka, long after our first discussion about the Kosovars that her family took in.

“It’s a shame most of it’s unknown. Albania is so under the radar that most of these things happened without anyone giving a second glance,” I said.

She smiled knowingly, nodding her head.

“Yes, but now you know, and that’s something. You can start telling others. Maybe one day the rest of the world will know about it, too.”

EDITOR'S NOTE: A previous version of this story stated that hundreds of Iranian refugees were residing in Albania. We've updated the text to explain that these Iranian refugees had been relocated from Camp Liberty in Iraq. We’ve also clarified that the refugees from Kosovo were mostly ethnic Albanians.

If you liked this story, sign up for the weekly bbc.com features newsletter, called “If You Only Read 6 Things This Week”. A handpicked selection of stories from BBC Future, Earth, Culture, Capital, Travel and Autos, delivered to your inbox every Friday.