As a woman in the male-dominated kingdom, Times reporter Megan Stack quietly fumed beneath her abaya. Her experience there has tainted her perception of the sexes.

Riyadh, Saudi Arabia — THE hem of my heavy Islamic cloak trailed over floors that glistened like ice. I walked faster, my eyes fixed on a familiar, green icon. I hadn't seen a Starbucks in months, but there it was, tucked into a corner of a fancy shopping mall in the Saudi capital. After all those bitter little cups of sludgy Arabic coffee, here at last was an improbable snippet of home -- caffeinated, comforting, American.

I wandered into the shop, filling my lungs with the rich wafts of coffee. The man behind the counter gave me a bemused look; his eyes flickered. I asked for a latte. He shrugged, the milk steamer whined, and he handed over the brimming paper cup. I turned my back on his uneasy face.

Crossing the cafe, I felt the hard stares of Saudi men. A few of them stopped talking as I walked by and watched me pass. Them, too, I ignored. Finally, coffee in hand, I sank into the sumptuous lap of an overstuffed armchair.

"Excuse me," hissed the voice in my ear. "You can't sit here." The man from the counter had appeared at my elbow. He was glaring.

"Excuse me?" I blinked a few times.

"Emmm," he drew his discomfort into a long syllable, his brows knitted. "You cannot stay here."

"What? Uh ... why?"

Then he said it: "Men only."

He didn't tell me what I would learn later: Starbucks had another, unmarked door around back that led to a smaller espresso bar, and a handful of tables smothered by curtains. That was the "family" section. As a woman, that's where I belonged. I had no right to mix with male customers or sit in plain view of passing shoppers. Like the segregated South of a bygone United States, today's Saudi Arabia shunts half the population into separate, inferior and usually invisible spaces.

At that moment, there was only one thing to do. I stood up. From the depths of armchairs, men in their white robes and red-checked kaffiyehs stared impassively over their mugs. I felt blood rushing to my face. I dropped my eyes, and immediately wished I hadn't. Snatching up the skirts of my robe to keep from stumbling, I walked out of the store and into the clatter of the shopping mall.

--

THAT was nearly four years ago, a lesson learned on one of my first trips to the kingdom. Until that day, I thought I knew what I was doing: I'd heard about Saudi Arabia, that the sexes are wholly segregated. From museums to university campuses to restaurants, the genders live corralled existences. One young, hip, U.S.-educated Saudi friend told me that he arranges to meet his female friends in other Arab cities. It's easier to fly to Damascus or Dubai, he shrugged, than to chill out coeducationally at home.

I was ready to cope, or so I thought. I arrived with a protective smirk in tow, planning to thicken the walls around myself. I'd report a few stories, and go home. I had no inkling that Saudi Arabia, the experience of being a woman there, would stick to me, follow me home on the plane and shadow me through my days, tainting the way I perceived men and women everywhere.

I'm leaving the Middle East now, closing up years spent covering the fighting and fallout that have swept the region since Sept. 11. Of all the strange, scary and joyful experiences of the past years, my time covering Saudi Arabia remains among the most jarring.

I spent my days in Saudi Arabia struggling unhappily between a lifetime of being taught to respect foreign cultures and the realization that this culture judged me a lesser being. I tried to draw parallels: If I went to South Africa during apartheid, would I feel compelled to be polite?

I would find that I still saw scraps of Saudi Arabia everywhere I went. Back home in Cairo, the usual cacophony of whistles and lewd coos on the streets sent me into blind rage. I slammed doors in the faces of deliverymen; cursed at Egyptian soldiers in a language they didn't speak; kept a resentful mental tally of the Western men, especially fellow reporters, who seemed to condone, even relish, the relegation of women in the Arab world.

In the West, there's a tendency to treat Saudi Arabia as a remote land, utterly removed from our lives. But it's not very far from us, nor are we as different as we might like to think. Saudi Arabia is a center of ideas and commerce, an important ally to the United States, the heartland of a major world religion. It is a highly industrialized, ultramodern home to expatriates from all over the world, including Americans who live in lush gated compounds with swimming pools, drink illegal glasses of bathtub gin and speak glowingly of the glorious desert and the famous hospitality of Saudis.