A rural environment and farming lifestyle are known to provide protection against allergic diseases. This protective effect is expected to be mediated via exposure to environmental microbes that are needed to support a normal immune tolerance. However, the triangle of interactions between environmental microbes, host microbiota, and immune system remains poorly understood. Here, we have studied these interactions using a canine model (two breeds, n = 169), providing an intermediate approach between complex human studies and artificial mouse model studies. We show that the skin microbiota reflects both the living environment and the lifestyle of a dog. Remarkably, the prevalence of spontaneous allergies is also associated with residential environment and lifestyle, such that allergies are most common among urban dogs living in single-person families without other animal contacts, and least common among rural dogs having opposite lifestyle features. Thus, we show that living environment and lifestyle concurrently associate with skin microbiota and allergies, suggesting that these factors might be causally related. Moreover, microbes commonly found on human skin tend to dominate the urban canine skin microbiota, while environmental microbes are rich in the rural canine skin microbiota. This in turn suggests that skin microbiota is a feasible indicator of exposure to environmental microbes. As short-term exposure to environmental microbes via exercise is not associated with allergies, we conclude that prominent and sustained exposure to environmental microbiotas should be promoted by urban planning and lifestyle changes to support health of urban populations. Significance Urban, Westernized populations suffer extensively from noncommunicable diseases such as allergies. However, the overlapping effects of living environment and lifestyle are difficult to separate. Intriguingly, also our fellow animals, dogs, suffer from analogous diseases. Therefore, we suggest that pet dogs, sharing their environment and lifestyle with humans but having a comparatively simple life, provide a valuable model for understanding origins of noncommunicable diseases. We show that living environment and lifestyle concurrently, but still independently, shape both the skin microbiota and the risk of allergic disease in dogs. Urbanized lifestyle, featuring restricted animal contacts and small family size, is allergy promoting both in rural and urban dogs. Hence, both environment and lifestyle seem to influence the microbiota and, probably consequently, immune tolerance.