<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Version>2.4.0.8</Version><ReportLongName>1070 - Disclosure - Commitments and Contingencies</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column FlagID="0"><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><CurrencyCode /><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName /><CurrencySymbol /><contextRef><ContextID>D2013Q2YTD</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0001490660</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2013-01-01T00:00:00</PeriodStartDate><PeriodEndDate>2013-06-30T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS /><CurrencyCode /><OriginalCurrencyCode /></MCU><CurrencySymbol /><Labels><Label Key="CalendarSupplement" Id="0" Label="6 Months Ended" /><Label Key="Calendar" Id="1" Label="Jun. 30, 2013" /></Labels></Column></Columns><Rows><Row FlagID="0"><Id>1</Id><IsAbstractGroupTitle>true</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>1</Level><ElementName>us-gaap_CommitmentsAndContingenciesDisclosureAbstract</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>xbrli:stringItemType</ElementDataType><SimpleDataType>string</SimpleDataType><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Commitments and Contingencies</Label></Row><Row FlagID="0"><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>2</Level><ElementName>us-gaap_CommitmentsAndContingenciesDisclosureTextBlock</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>terseLabel</PreferredLabelRole><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="D2013Q2YTD" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;div style="font-size:10.0pt;font-family:Times New Roman;"&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&lt;b&gt;7. Commitments and Contingencies&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;i&gt;Leases&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;The Company leases its office facilities in San Mateo, California, Portland, Oregon, Dublin, Ireland and Sydney, Australia under operating lease agreements expiring in 2016. Under terms of the leases, the Company is responsible for certain insurance, property taxes, and maintenance expenses. Rent expense for non-cancellable operating leases with scheduled rent increases is recognized on a straight line basis over the terms of the leases. The difference between required lease payments and rent expense has been recorded as deferred rent. Deferred rent as of December&amp;#160;31, 2011, 2012 and June&amp;#160;30, 2013 (unaudited), of $176,000, $148,000 and $1,370,000, respectively, are all long-term.&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;Rent expense under these operating leases was $346,000, $798,000, $1,488,000, $585,000 and $1,282,000 for the years ended December&amp;#160;31, 2010, 2011, 2012 and the six months ended June&amp;#160;30, 2012 (unaudited) and 2013 (unaudited), respectively.&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;As of December&amp;#160;31, 2012, the Company had no capital leases. As of December&amp;#160;31, 2012, future minimum operating lease payments are as follows for the year ending December&amp;#160;31 (in thousands):&lt;/font&gt;&lt;/p&gt;
&lt;div style="POSITION: relative; PADDING-BOTTOM: 0pt; PADDING-LEFT: 0pt; WIDTH: 70%; PADDING-RIGHT: 0pt; MARGIN-LEFT: 15%; PADDING-TOP: 0pt;"&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&lt;!-- COMMAND=ADD_TABLEWIDTH,"100%" --&gt;&lt;/font&gt;&lt;/p&gt;
&lt;!-- User-specified TAGGED TABLE --&gt;
&lt;div align="center"&gt;
&lt;table border="0" cellspacing="0" cellpadding="0" width="100%" style="text-align:left;"&gt;

&lt;tr style="padding:0;"&gt;&lt;!-- TABLE COLUMN WIDTHS SET --&gt;
&lt;td style="FONT-FAMILY: arial;" align="left"&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" width="12"&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" width="7" align="right"&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" width="49"&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" width="12"&gt;&lt;/td&gt;&lt;!-- TABLE COLUMN WIDTHS END --&gt;&lt;/tr&gt;
&lt;tr style="padding:0;" valign="bottom" bgcolor="#CCEEFF"&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;
&lt;p style="TEXT-INDENT: -10pt; FONT-FAMILY: arial; MARGIN-LEFT: 10pt;"&gt;&lt;font size="2"&gt;2013&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;$&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;2,367&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="padding:0;" valign="bottom" bgcolor="white"&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;
&lt;p style="TEXT-INDENT: -10pt; FONT-FAMILY: arial; MARGIN-LEFT: 10pt;"&gt;&lt;font size="2"&gt;2014&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;2,765&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="padding:0;" valign="bottom" bgcolor="#CCEEFF"&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;
&lt;p style="TEXT-INDENT: -10pt; FONT-FAMILY: arial; MARGIN-LEFT: 10pt;"&gt;&lt;font size="2"&gt;2015&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;3,014&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="padding:0;" valign="bottom" bgcolor="white"&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;
&lt;p style="TEXT-INDENT: -10pt; FONT-FAMILY: arial; MARGIN-LEFT: 10pt;"&gt;&lt;font size="2"&gt;2016&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;2,072&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="padding:0;" valign="bottom" bgcolor="#CCEEFF"&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;
&lt;p style="TEXT-INDENT: -10pt; FONT-FAMILY: arial; MARGIN-LEFT: 10pt;"&gt;&lt;font size="2"&gt;2017 and beyond&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;&amp;#8212;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="padding:0; FONT-SIZE: 1.5pt;" valign="top"&gt;
&lt;td style="FONT-FAMILY: arial;" valign="bottom"&gt;&amp;#160;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" valign="bottom"&gt;&amp;#160;&lt;/td&gt;
&lt;td style="BORDER-BOTTOM: #000000 1pt solid; FONT-FAMILY: arial;" valign="bottom" colspan="2" align="right"&gt;&amp;#160;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" valign="bottom"&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="padding:0;" valign="bottom" bgcolor="white"&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;
&lt;p style="TEXT-INDENT: -10pt; FONT-FAMILY: arial; MARGIN-LEFT: 20pt;"&gt;&lt;font size="2"&gt;Total&lt;/font&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;$&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" align="right"&gt;&lt;font size="2"&gt;10,218&lt;/font&gt;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="padding:0; FONT-SIZE: 1.5pt;" valign="top"&gt;
&lt;td style="FONT-FAMILY: arial;" valign="bottom"&gt;&amp;#160;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" valign="bottom"&gt;&amp;#160;&lt;/td&gt;
&lt;td style="BORDER-BOTTOM: #000000 2.25pt double; FONT-FAMILY: arial;" valign="bottom" colspan="2" align="right"&gt;&amp;#160;&lt;/td&gt;
&lt;td style="FONT-FAMILY: arial;" valign="bottom"&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;!-- end of user-specified TAGGED TABLE --&gt;&lt;/div&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;In addition, on April&amp;#160;15, 2013, the Company entered into a definitive lease agreement whereby the Company will lease approximately 10,406&amp;#160;square feet of office space in Portland, Oregon. The Company's contractual operating lease obligation under this agreement is approximately $1.2&amp;#160;million, payable over the five-year term of the lease. (unaudited)&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;i&gt;Contractual Commitments&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;Contractual agreements with third parties consist of co-location hosting services, software licenses, maintenance and support for our operations. As of December&amp;#160;31, 2012, future payments for non-cancellable contractual agreements are $2.7&amp;#160;million, $616,000 and $113,000 in 2013, 2014 and 2015, respectively.&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&lt;b&gt;&lt;i&gt;Legal Proceedings&lt;/i&gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;From time to time, the Company may be involved in various legal proceedings arising from the normal course of business activities. The Company is not currently a party to any legal proceedings that would have a material adverse effect on the business.&lt;/font&gt;&lt;/p&gt;
&lt;p style="FONT-FAMILY: arial;"&gt;&lt;font size="2"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;On May&amp;#160;17, 2013, iHance,&amp;#160;Inc. filed a complaint against the Company in the United States District Court for the Northern District of California, alleging that a salesperson email tracking feature in the Marketo Sales Insight application infringed upon certain of iHance's patents. On July&amp;#160;29, 2013, the Company filed an answer to the complaint, denying iHance's infringement allegations and asserting a counterclaim for a declaratory judgment of noninfringement and invalidity. On August&amp;#160;9, 2013, the Company filed an amended answer with respect to the counterclaim. The Company is continuing to evaluate iHance's claims and intends to vigorously defend this matter. Based on the information currently available to it, the Company does not believe any loss from this litigation is probable or estimable. (unaudited)&lt;/font&gt;&lt;/p&gt;
&lt;/div&gt;</NonNumbericText><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>nonnum:textBlockItemType</ElementDataType><SimpleDataType>na</SimpleDataType><ElementDefenition>The entire disclosure for commitments and contingencies.</ElementDefenition><ElementReferences>Reference 1: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name FASB Interpretation (FIN)

 -Number 14

 -Paragraph 3

 -LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009.  This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.



Reference 2: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 210

 -SubTopic 10

 -Section S99

 -Paragraph 1

 -Subparagraph (SX 210.5-02.25)

 -URI http://asc.fasb.org/extlink&amp;oid=6877327&amp;loc=d3e13212-122682



Reference 3: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 825

 -SubTopic 20

 -Section 50

 -Paragraph 1

 -URI http://asc.fasb.org/extlink&amp;oid=6449706&amp;loc=d3e16207-108621



Reference 4: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 460

 -SubTopic 10

 -Section 50

 -Paragraph 8

 -URI http://asc.fasb.org/extlink&amp;oid=6398077&amp;loc=d3e12565-110249



Reference 5: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 450

 -SubTopic 20

 -Section 50

 -Paragraph 4

 -URI http://asc.fasb.org/extlink&amp;oid=6952336&amp;loc=d3e14435-108349



Reference 6: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Accounting Standards Codification

 -Topic 440

 -SubTopic 10

 -Section 50

 -Paragraph 2

 -URI http://asc.fasb.org/extlink&amp;oid=6394976&amp;loc=d3e25287-109308



Reference 7: http://www.xbrl.org/2003/role/presentationRef

 -Publisher FASB

 -Name Statement of Financial Accounting Standard (FAS)

 -Number 5

 -Paragraph 9, 10, 11, 12

 -LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009.  This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.



</ElementReferences><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Commitments and Contingencies</Label></Row></Rows><Footnotes /><IsEquityReport>false</IsEquityReport><ReportName>Commitments and Contingencies</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>true</HasCustomUnits><IsEmbedReport>false</IsEmbedReport><IsMultiCurrency>false</IsMultiCurrency><ReportType>Sheet</ReportType><RoleURI>http://www.marketo.com/role/DisclosureCommitmentsAndContingencies</RoleURI><NumberOfCols>1</NumberOfCols><NumberOfRows>2</NumberOfRows></InstanceReport>
