It has been a rough few weeks for Megaport Ltd (ASX: MP1) shares and its shareholders.
After reaching a 52-week high of $23.20 in early October, the technology company's shares are trading around $13.35 on Thursday.
That represents a decline of approximately 42% in less than two months.
Has this sell-off created a buying opportunity, or are investors right to be heading for the exits?

Image source: Getty Images
Why are Megaport shares falling?
Megaport appears to have been caught up in a broader technology sell-off as investors reassess growth stock valuations and question the returns to be generated from the enormous sums being invested in artificial intelligence (AI) infrastructure.
Closer to home, the company's annual general meeting last week saw approximately 58% of shareholders vote against its remuneration report, resulting in a first strike.
However, having followed Megaport's progress closely this year, I think there is a lot to like about what is happening within the business.
The acquisition of Latitude.sh has opened up a much larger addressable market for the company, allowing it to offer computing power and storage alongside its established global network services.
And customers are already showing a strong appetite for this broader offering.
Since April, Megaport has announced strategic contracts with a combined value of approximately $2.3 billion.
Positively, some of the infrastructure required to service these contracts has been deployed ahead of schedule, allowing Megaport to start generating revenue earlier than anticipated.
Its existing network business is also performing well, with annual recurring revenue (ARR) growing 29% in constant currency terms in the 12 months to August.
I think this side of the business deserves more attention given how much of the conversation now revolves around AI.
Would I buy the dip?
What makes the recent sell-off so interesting to me is that investors can now buy into a business that is expecting to more than double its revenue this financial year at a fraction of the valuation it commanded in early October.
Management is forecasting FY27 revenue of $720 million to $810 million, up from $312.2 million in FY26.
It also expects its EBITDA margin to increase from approximately 25% to between 42% and 44%.
However, I would be careful about getting carried away with these figures. Megaport's expansion into computing services has made it a much more capital-intensive business, with planned capital expenditure of up to $1.88 billion this financial year.
While management has confirmed that its existing investment program is fully funded, I will be watching closely to see how efficiently Megaport turns these investments into sustainable cash flows.
There is also the risk that computing hardware becomes outdated faster than anticipated, requiring further investment to remain competitive.
Nevertheless, given the customer commitments already secured and the opportunities to sell additional services across its global network, I think Megaport has the potential to grow into a considerably larger business over the next five years.
And I would be willing to back it at today's valuation.
Foolish takeaway
I would buy the dip in Megaport shares, but I would be conscious of how much exposure I have to the company within my portfolio.
There will be a lot for management to deliver over the next couple of years, and I expect the shares to remain volatile along the way.
But for investors who share my optimism about the long-term demand for AI infrastructure and cloud connectivity, I think the recent sell-off could prove to be a great opportunity to invest in Megaport.