Intelligent fault diagnosis (IFD) based on deep learning (DL) has demonstrated its powerful performance to promote the reliability and safe operation of rotating machinery. In industrial applications, working condition changes frequently, leading to models’ performance degeneration due to out-of-distribution (OOD) samples, such as vibration signals with unseen rotating speeds, loads, etc. To address this issue, domain generalization fault diagnosis (DGFD) has attracted increasing attention. However, mainstream DGFD methods are implemented from statical dependence, which fail to excavate intrinsic causal mechanisms and have limited performance and reliability. From a causal view, the causal independence and sparse shift network (CIS2N) is proposed to diagnose via causal mechanisms. Specially, a structural causal model (SCM) representing causal relations of features in IFD is given. Based on the SCM, it is derived that features are jointly independent and feature deviation between intervened sample pairs is sparse. The dependence among features is measured via the covariance matrices constructed by high-level features mapped by random Fourier features (RFF). Meanwhile the L1-distance between pairs of features with the same causal features (intervened pair) is calculated and optimized to realize shift sparsity. The effectiveness of the proposed CIS2N on DGFD is demonstrated on two real helical gearbox datasets.