# xarray.DataTree.find_common_ancestor

#### DataTree.find_common_ancestor(other)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/treenode.py#L770-L786)

Find the first common ancestor of two nodes in the same tree.

Raise ValueError if they are not in the same tree.
