Unlock stock picks and a broker-level newsfeed that powers Wall Street.
Mark Zuckerberg explains Facebook's secrets for acquiring companies
mark zuckerberg
mark zuckerberg

(Mark Zuckerberg.Scott Olson / Getty Images)

In the weeks leading up to Mark Zuckerberg's decision to buy Oculus for $2 billion, he received a concerning message from Oculus cofounder Brendan Iribe.

Google was also interested in buying the virtual reality startup.

A similar situation occurred during Facebook's two-week negotiation process to acquire WhatsApp for $19 billion in 2014. A rival tech giant, believed to have also been Google, offered WhatsApp more money in an attempt to steal the messaging app away from Zuckerberg.

Facebook ended up successfully closing deals on Oculus and WhatsApp within a few weeks, beating out Google twice.

Zuckerberg gave rare insight into how he approaches acquiring other companies during a public testimony in a Dallas courtroom on Tuesday. He was there to testify in a lawsuit between Oculus and the video game publisher ZeniMax.

Here are Zuckerberg's four main acquisition strategies, which Business Insider obtained through a court transcript of his testimony:

1. Build relationships first

kevin systrom mark zuckerberg
kevin systrom mark zuckerberg

(Instagram CEO Kevin Systrom with Mark Zuckerberg.Facebook)

While Facebook conducted its legal due diligence on Oculus over one weekend, Zuckerberg explained that he usually approaches big acquisitions by first establishing friendships with the founders of the companies he's looking to scoop up.

"In reality what is happening with all of these, in Instagram and WhatsApp and Oculus, they are kind of things that we've been thinking about for a long time," he said.

"And I've been building relationships, at least in Instagram and the WhatsApp cases, for years with the founders and the people that are involved in these companies," he said, "which made it so that when it became time or when we thought it was the right time to move, we felt like we had a good amount of context and had good relationships so that we could move quickly, which was competitively important and why a lot of these acquisitions, I think, came to us instead of our competitors and ended up being very good acquisitions over time that a lot of competitors wished they had gotten instead."

2. Have a shared vision

Mark Zuckerberg and Brendan Iribe
Mark Zuckerberg and Brendan Iribe

(Mark Zuckerberg, left, tries the Oculus-powered Gear VR headset with Brendan Iribe.Facebook)

Zuckerberg said that the main reason he was able to acquire Oculus for less than the $4 billion its team originally wanted was because he pitched a vision of collaboration between the two companies that everyone bought into.

"The most important thing was aligning and getting excited about a shared vision and about how we're going to work together," he said. "Or if they built the hardware and we built the experiences, how that could be better than either of us working separately.